<template>
  <div id="hou">
    <ul>
      <li v-for="(aa, bb) in vv" :key="bb">
        {{ aa }} <button @click="gg(bb)">删除</button>
      </li>
    </ul>
    <button @click="aa">抽卡</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      vv: [1, 3, 5],
    };
  },
  methods: {
    aa() {
      this.vv.push(Math.ceil(Math.random() * 10));
    },
    gg(bb) {
      this.vv.splice(bb, 1);
    },
  },
};
</script>

<style></style>
